package com.example.AIstudy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.AIstudy.dao.DialogDao;
import com.example.AIstudy.domain.Dialog;
import com.example.AIstudy.service.DialogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DialogServiceImpl extends ServiceImpl<DialogDao, Dialog>implements DialogService {

    @Autowired
    DialogDao dialogDao;

    //根据问题的ID获取用户的全部对话记录
    @Override
    public List<Dialog> findDialogsByQuesID(Integer quesID) {
        return dialogDao.findDialogsByQuesID(quesID);
    }

}
